const mongoose = require('mongoose')
const reviewSchema = mongoose.Schema({
    "rbId": Number,           //报销单Id
    "upload_id": String,               //报销批次Id
    "fraud": {
        type: Number,
        default: 0
    },//预测结果 0-否 1-是
    "reviewFraud": {
        type: Number,
        default: 2
    },//审查结果 0-否 1-是 2-未审查
    "onlineReview": {
        type: Number,
        default: 0
    },//线上审查 0-否 1-是
    "offlineReview": {
        type: Number,
        default: 0
    },//线下审查 0-否 1-是
    "score": {
        type: Number,
        default: 0
    },//预测诈骗分数
    "level": {
        type: Number,
        default: 0
    },//风险等级 0-低风险 1-中风险 2-高风险
    "remark": String,//备注
})

module.exports = mongoose.model("reviews", reviewSchema, "reviews")//第三个参数是集合名称